#ifndef __MCU_RPC_H__
#define __MCU_RPC_H__
#include "uartcom.h"
#include "rpcdefine.h"
#include "respack.h"

bool RpcLaunchApp(uint8_t uApp, uint8_t uPage);
//For base control
bool RpcSetBgImage(uint8_t uApp, uint8_t uPage, uint8_t uCtrl, uint8_t uH, uint8_t uL);
bool RpcSetBgColor(uint8_t uApp, uint8_t uPage, uint8_t uCtrl, uint8_t r, uint8_t g, uint8_t b, uint8_t a);
bool RpcSetCtrlAtt(uint8_t uApp, uint8_t uPage, uint8_t uCtrl, uint8_t uAtt);
//For label
bool RpcSetColor(uint8_t uApp, uint8_t uPage, uint8_t uCtrl, uint8_t r, uint8_t g, uint8_t b, uint8_t a);
bool RpcSetText(uint8_t uApp, uint8_t uPage, uint8_t uCtrl, uint8_t *pText, uint8_t len);
bool RpcSetTextAtt(uint8_t uApp, uint8_t uPage, uint8_t uCtrl, uint8_t uAtt);

#define IMAGEU16ToU8_BE(X)			(X&0xFF00)>>8, (X&0xFF)
#endif //